import { defineStore } from 'pinia';

export const useUserStore = defineStore('users', {
	state: () => {
		return { userInfo: {name:"zhangsna"} };
	},
	// 也可以这样定义
	// state: () => ({ count: 0 })
	actions: {
		increment() {
			// this.count++;
			console.log("走了action")
		},
	},
});